import http from '../utils/request.js'
export const getData = () => {
  return http.get('/home/getData')
}
export const getUser = (params) => {
  return http.get('/user/getUser',params)
}
export const addUser = (data) => {
  return http.post('/user/add',data)
}
export const updateUser = (data) => {
  return http.post('/user/update',data)
}
export const deleteUser = (data) => {
  return http.post('/user/delete',data)
}
export const getMenu = (data) => {
  return http.post('/premission/getMenu/',data)
}